LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := png

LOCAL_SRC_FILES := ../../../ZUI/thirdParty/libpng/png.c ../../../ZUI/thirdParty/libpng/pngerror.c ../../../ZUI/thirdParty/libpng/pngget.c ../../../ZUI/thirdParty/libpng/pngmem.c ../../../ZUI/thirdParty/libpng/pngpread.c ../../../ZUI/thirdParty/libpng/pngread.c ../../../ZUI/thirdParty/libpng/pngrio.c ../../../ZUI/thirdParty/libpng/pngrtran.c ../../../ZUI/thirdParty/libpng/pngrutil.c ../../../ZUI/thirdParty/libpng/pngset.c ../../../ZUI/thirdParty/libpng/pngtrans.c ../../../ZUI/thirdParty/libpng/pngwio.c ../../../ZUI/thirdParty/libpng/pngwrite.c ../../../ZUI/thirdParty/libpng/pngwtran.c ../../../ZUI/thirdParty/libpng/pngwutil.c

ifeq ($(PM5_CONFIG),debug)
  LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../ZUI/thirdParty/zlib
  LOCAL_CPP_FEATURES := exceptions
  LOCAL_CFLAGS := -D__ANDROID__ -DDEBUG -D_DEBUG -D_CRTDBG_MAP_ALLOC -DDEBUG_MALLOC -DSDL_STATICLIB
  include $(BUILD_STATIC_LIBRARY)
endif

ifeq ($(PM5_CONFIG),release)
  LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../ZUI/thirdParty/zlib
  LOCAL_CPP_FEATURES := exceptions
  LOCAL_CFLAGS := -D__ANDROID__ -DNDEBUG -DSDL_STATICLIB
  include $(BUILD_STATIC_LIBRARY)
endif